﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Responder
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Responder</h2>
    <form action="/Mensajes/Enviar" method="post">
    <table>
    <%Aprendete.Models.Usuario destinatario = TempData["destinatario"] as Aprendete.Models.Usuario;%>
    <tr><td>Destinatario: </td> <td><%:destinatario.UserName %></td></tr>
    <tr><td>Asunto :</td>       <td><%=Html.TextBox("asunto") %></td></tr>
    </table>
    <br />
    
       
    <TEXTAREA style="width: 100%" ROWS=10 NAME="contenido"></TEXTAREA>
    
    
    <%TempData["userRemitente"] = destinatario.UserName ; %>
    
    
    
    <input type="submit" value="Enviar" />
    </form>

</asp:Content>
